package com.zis.system.dao;

import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.annotatoin.SqlStatement;
import org.beetl.sql.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import com.zis.system.model.GroupRes;

import java.util.List;

@Repository
@SqlResource(value = "system.groupRes")
public interface GroupResDao extends BaseMapper<GroupRes> {

    @SqlStatement(params = "groupId")
    int deleteResByGroupId(String groupId);

    @SqlStatement(params = "groupId")
    List<GroupRes> findByGroupId(String groupId);
}
